﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Editors.PropertyPages;
using Microsoft.VisualStudio.Data.Schema.Package.Project;

namespace TFDP.VsPackage.Forms
{
    [CLSCompliant(false)]
    [ComVisible(true)]
    [System.Runtime.InteropServices.GuidAttribute(TFDPPropertyPageComClass.guidString)]
    public sealed class TFDPPropertyPageComClass : PropPageBase, IDatabaseProjectPropertyPageDefinition
    {
        public const string guidString = "234F5DE3-2AD7-4C68-A2B5-D77374884D9D";

        public static int Order;

        static TFDPPropertyPageComClass()
        {
            Order = 101;
        }

        public TFDPPropertyPageComClass()
        {
        }

        protected override Type ControlType
        {
            get { return typeof(TFDPPropertyPage); }
        }

        protected override System.Windows.Forms.Control CreateControl()
        {
            return new TFDPPropertyPage();
        }

        protected override string Title
        {
            get { return "TFDP"; }
        }

        #region IDatabaseProjectPropertyPageDefinition Members

        public bool IsConfigDependent
        {
            get { return false; }
        }

        public string PropertyPageGuid
        {
            get { return TFDPPropertyPageComClass.guidString; }
        }

        public int PropertyPageOrder
        {
            get { return TFDPPropertyPageComClass.Order; }
        }

        #endregion
    }
}
